package properties;

import java.util.Properties;

/**
 * @author liufei
 * @date 2021/8/18 17:16
 */
public class ScheduleProperties extends BaseProperties {
    private String inTime;
    private String outTime;

    public ScheduleProperties() {
        Properties properties = readProperties("schedule.properties");
        inTime = properties.getProperty("in_time");
        outTime = properties.getProperty("out_time");
        logger.info("加载调度配置：" + toString());
    }

    public String getInTime() {
        return this.inTime;
    }

    public void setInTime(String inTime) {
        this.inTime = inTime;
    }

    public String getOutTime() {
        return this.outTime;
    }

    public void setOutTime(String outTime) {
        this.outTime = outTime;
    }

    @Override
    public String toString() {
        return "properties.ScheduleProperties{" +
                "inTime='" + inTime + '\'' +
                ", outTime='" + outTime + '\'' +
                '}';
    }
}
